package Interface;



import java.awt.BorderLayout;

import javax.swing.*;

import org.netbeans.lib.awtextra.AbsoluteLayout;

public class Executa extends JFrame {	
	
	private static JPanel painelBase = new JPanel();
	
	public Executa(){
		
		super("Pitaqueiro");
		new Inicializa();
		setLayout(new BorderLayout());
		setSize(800,600);
		setVisible(true);
		painelBase.setSize(800,600);
		painelBase.setLayout(new BorderLayout());
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);		
	    painelBase.add(new MenuPrincipal());
		getContentPane().add(painelBase);
		painelBase.updateUI();
		
	}
	
	public static void trocaPainel(JPanel painel){			
		painelBase.removeAll();
		painelBase.repaint();
		painelBase.add(painel);
		painelBase.validate();
		
	}
	
	public static void main(String[] args) {		
		new Executa();
	}
}